home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * (a) (C) 1990 by Adobe Systems Incorporated. All rights reserved.
- *
- * (b) If this Sample Code is distributed as part of the Display PostScript
- * System Software Development Kit from Adobe Systems Incorporated,
- * then this copy is designated as Development Software and its use is
- * subject to the terms of the License Agreement attached to such Kit.
- *
- * (c) If this Sample Code is distributed independently, then the following
- * terms apply:
- *
- * (d) This file may be freely copied and redistributed as long as:
- * 1) Parts (a), (d), (e) and (f) continue to be included in the file,
- * 2) If the file has been modified in any way, a notice of such
- * modification is conspicuously indicated.
- *
- * (e) PostScript, Display PostScript, and Adobe are registered trademarks of
- * Adobe Systems Incorporated.
- *
- * (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
- * CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
- * AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
- * ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
- * OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
- * WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
- * WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
- * DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
- * OF THIRD PARTY RIGHTS.
- */
-
- /*
- * ClockViewWraps.psw
- *
- * Version: 2.0
- * Author: Ken Fromm
- * History:
- * 03-07-91 Added this comment.
- */
-
- /* StartTime is stored in the interpreter and contains the initial real time */
- defineps PSWMarkTime ()
- /StartTime realtime def
- endps
-
- /* The difference between the current real time and the initial time stored */
- /* in StartTime is returned to the calling procedure in the output arg ElapsedTime. */
- defineps PSWReturnTime (|int *ElapsedTime)
- realtime StartTime sub
- ElapsedTime
- endps
-
- defineps PSWEraseView (float BGColor, X, Y, W, H)
- BGColor setgray X Y W H rectfill
- endps
-
- defineps PSWMakeCircle (float X, Y, Rad)
- X Rad add Y moveto X Y Rad 0 360 arc
- endps
-
- defineps PSWFillPath (float Color)
- Color setgray fill
- endps
-
- defineps PSWSetUpath (float Pts[Tot_Pts]; int Tot_Pts;
- char Ops[Tot_Ops]; int Tot_Ops)
- [Pts (Ops)]
- endps
-
- defineps PSWSetGstate (float X, Y, Gray, Linewidth)
- newpath X Y translate Gray setgray Linewidth setlinewidth
- endps
-
- defineps PSWInstallGstate(userobject GState; float Angle)
- GState setgstate
- Angle rotate
- endps
-
- defineps PSWUpathStrokeFill(userobject UPath)
- UPath dup ustroke
- currentgray 0.2 add setgray
- ufill
- endps
-
- defineps PSWUpathFill(userobject UPath)
- UPath ufill
- endps
-
- defineps PSWDrawCircle(float Color)
- Color setgray
- newpath 0 0 10 0 360 arc stroke
- endps
-
- defineps PSWHitPath(userobject UPath1, UPath2; float HPts[Tot_HPts]; int Tot_HPts;
- char HOps[Tot_HOps]; int Tot_HOps; | boolean *Hit)
- newpath UPath1 uappend UPath2 uappend [HPts (HOps)] infill Hit
- endps
-
-